#include "StdAfx.h"
#include "simpleGraph.h"


namespace DSP
{
	simpleGraph::simpleGraph(LPCWSTR fileName)
	{
		HRESULT hr = pGraph.CoCreateInstance(CLSID_FilterGraph);
		if(FAILED(hr))
			throw errorInfo("Error: Can not create filter graph.", hr);
		hr = pGraph->RenderFile(fileName, NULL);
		if(FAILED(hr))
			throw errorInfo("Error: Can not set file.", hr);
	}


	simpleGraph::~simpleGraph(void)
	{
	}
}